import request from '@/utils/request'

export function publishArticles(data) {
  return request({
    url: '/articles/create',
    method: 'post',
    data
  })
}

export function getAllArticles(data) {
  return request({
    url: '/articles/list',
    method: 'get',
    data
  })
}

export function deleteById(data) {
  return request({
    url: '/articles/delete',
    method: 'post',
    params: data
  })
}
